/*
 * Lenovo Group
 * Copyright (c) 2015-2016 All Rights Reserved.
 * 
 * Project Name:lmrp-api
 * Create Time: 2016年2月24日 下午9:24:22
 */
package com.lenovo.lmrp.api.model.view;

import java.io.Serializable;

/**
 * 
 * @author songyz
 * @version $Id: GrabRecode.java, v 0.1 2016年2月24日 下午9:24:22 songyz Exp $
 */
public class GrabRecode implements Serializable {

	private static final long serialVersionUID = 1L;

	private String itsmCode;
	private String engineerId;
	private String ticketId;

	
	public String getItsmCode() {
		return itsmCode;
	}

	public void setItsmCode(String itsmCode) {
		this.itsmCode = itsmCode;
	}

	public String getEngineerId() {
		return engineerId;
	}

	public void setEngineerId(String engineerId) {
		this.engineerId = engineerId;
	}

	public String getTicketId() {
		return ticketId;
	}

	public void setTicketId(String ticketId) {
		this.ticketId = ticketId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((engineerId == null) ? 0 : engineerId.hashCode());
		result = prime * result + ((ticketId == null) ? 0 : ticketId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		GrabRecode other = (GrabRecode) obj;
		if (engineerId == null) {
			if (other.engineerId != null)
				return false;
		} else if (!engineerId.equals(other.engineerId))
			return false;
		if (ticketId == null) {
			if (other.ticketId != null)
				return false;
		} else if (!ticketId.equals(other.ticketId))
			return false;
		return true;
	}
}
